Set the host and port where Filebeat can find the Elasticsearch installation, and set the username and password of a user who is authorized to set up Filebeat. 

For example:
```bash
vi /etc/filebeat/filebeat.yml
```

```
output.elasticsearch:
  hosts: ["https://myEShost:9200"]
  username: "filebeat_internal"
  password: "YOUR_PASSWORD" 

 setup.kibana:
    host: "mykibanahost:5601" 
    username: "my_kibana_user"  
    password: "{pwd}"
``` 

Identify the modules you need to enable. To see a list of available modules, run:

```
filebeat modules list
```

From the installation directory, enable one or more modules. For example, the following command enables the _nginx_ module config:

```
filebeat modules enable nginx
```

From the installation directory, run:

```
filebeat setup -e
```

To start Filebeat, run:

```
sudo service filebeat start
```

 http://myEShost:5601